package com.多线程基础.常用方法.礼让线程方法;

import com.多线程基础.常用方法.优先级方法.MyThread;

public class ThreadDemo {
    public static void main(String[] args) {//礼让线程静态方法，就是一个结束必然另一个
        MyThread myThread=new MyThread();
        Thread r1=new Thread(myThread,"飞机");
        Thread r2=new Thread(myThread,"坦克");
        r1.start();
        r2.start();
    }


}
